//
//  BanBu_SendMsg.h
// Halfarea
//
//  Created by Wang Xj on 14-1-22.
//
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import "BanBu_ChatCellAPI.h"

@class BanBu_ChatViewController;
#define sendMsgManager [BanBu_SendMsg shareInstance]



@interface BanBu_SendMsg : NSObject<AVAudioPlayerDelegate>

+ (BanBu_SendMsg *)shareInstance;
@property (assign, nonatomic) BanBu_ChatViewController * appChatController;
@property (assign, nonatomic) int rowt;                    //选中行
@property (retain, nonatomic) AVAudioPlayer * audioPlayer; //播放发送时的声音
@property (assign, nonatomic) NSInteger effectiveTime;     //阅后即焚的有效时间
@property (assign, nonatomic) NSInteger textEffectiveTime;     //阅后即焚的有效时间
@property (assign, nonatomic) BOOL snapText;               //阅后即焚模式的文本

@property (assign, nonatomic) SystemSoundID  soundID;

//检查是不是VIP或好友
-(BOOL)VIPCheck;

//发送消息
- (void)sendOneMsg:(id)MsgData type:(ChatCellType)type filePathExtension:(NSString *)pathExtension From:(NSString *)from;
//重新发送
- (void)ReconnectOneMsg:(id)MsgData amsg:(NSMutableDictionary *)dictionary;

#pragma mark - 接收“观察者”发送的消息内容
-(void)sendMsgAllType:(NSNotification *)notifi;

//涂鸦
-(void)listeningAction:(NSNotification *)notifi;

//破冰语：文字;魔法工具箱：翻译、火星文
-(void)sendText:(NSNotification *)notifi;

//破冰语：图片
-(void)icePic:(NSNotification *)notifi;

//破冰语：语音
-(void)iceVoice:(NSNotification *)notifi;

//发送图片
-(void)systemPhoto:(NSNotification *)notifi;

//发送视频
-(void)sendVideo:(NSNotification *)notifi;

//闪光字
-(void)iceSpark:(NSNotification *)notifi;

//发送魔法表情
-(void)sendMagicFace:(NSNotification *)notifi;

//阅后即焚
-(void)sendSnapMsg:(NSNotification *)notifi;

//发送名片
-(void)sendVisitingCard:(NSNotification *)notifi;

@end
